<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>使用jq解释json数据</title>
    <script src="./js/jquery-3.3.1.min.js"></script>
</head>
<body>
<script>
    $(function(){
        $.get("jsonData",function(res){
            $.each(res,function(index,clazz){
                var option = $("<option/>").text(clazz.title).val(clazz.id);
                $("#addr").append(option);
            });
        });
    })
</script>

    <div id="data">
        地址是：<select id="addr"></select>
    </div>
</body>
</html>

